<!DOCTYPE html>
<html lang="en">
    <head>
        <title></title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
    </head>
    <body>
        <script>
            // some 的回调函数函数返回true或者false
            // 只要有一项返回true,some就返回true,全部返回false时every才返回false
            var scores = [5,8,3,10]
            var current = 7;
            if(scores.some(item=>{
                return item>current;
            })){
                alert("朕准了")
            }else{
                alert("朕不准")
            }
        </script>
    </body>
</html>